package d1_com.itheima.object;

public class Test2 {
    //克隆 clone
    public static void main(String[] args) throws CloneNotSupportedException {
        User u1 = new User(6,"牛马","123456",new double[]{123,123,123});
        System.out.println(u1);
        
        User u2= (User)u1.clone();
        System.out.println(u2.toString());
    }
}
